//
//  YFLocationManager.h
//  project
//
//  Created by yefei on 2019/4/30.
//  Copyright © 2019 健健. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AMapLocationKit/AMapLocationKit.h>
#import <AMapFoundationKit/AMapFoundationKit.h>


NS_ASSUME_NONNULL_BEGIN

typedef void(^PositionInfo)(CLLocation *_Nullable location, AMapLocationReGeocode *_Nullable regeocode, NSString * _Nullable error);

@interface YFLocationManager : NSObject

@property (class, nonatomic, strong, readonly) YFLocationManager *shared;

- (void)onceLocating:(PositionInfo)completion;

- (void)continuedLocating:(PositionInfo)completion;

@end

NS_ASSUME_NONNULL_END
